﻿using FluentNHibernate.Mapping;
using Noodles.Core.Model;

namespace Noodles.Core.Model.Mappings
{
    public class CommentsMap : ClassMap<Comments>
    {
        public CommentsMap()
        {
            Id(x => x.CommentID);
            Map(x => x.BlogID);
            Map(x => x.Comment);
            Map(x => x.CreateDate);
            Map(x => x.UpdateDate);
            Map(x => x.IsActive);
            Map(x => x.UserName);
            Map(x => x.UserData);
            Map(x => x.IsSpam);
            Map(x => x.UserEmail);
            Map(x => x.UserIP);
            //References(x => x.blog, "BlogID");
        }
    }
}
